#!/bin/bash

mes=`cat /var/www/traffic/test/send.txt`

webhook='https://oapi.dingtalk.com/robot/send?access_token=e451286bbc20483a2e3275ba5e62f7b6bb1af0bfbf622ad7d58e218bd7f70aac'
function SendMsg() {
    curl $webhook -H 'Content-Type: application/json' -d "
    {
        'msgtype': 'text',
        'text': {
            'content': '$mes'
        },
		'at': {
	        'isAtAll': true
        }
    }"
}
SendMsg
